package com.example.shushiyunsst.fragment.main.home.child.new_sale.chlid.bean;

import android.text.TextUtils;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

public class GroupBookingBean implements Serializable {

    //未参加
    public static int UN_ATTENDING = -1;

    //参与中
    public static int ATTENDING = 0;

    //未中奖/完成
    public static int UN_REWARDING = 1;

    //中奖/完成
    public static int REWARDING = 2;

    //撤销
    public static int CANCEL = 3;

    /**
     * gbid : 8
     * goodsId : 23
     * goodsLogo : http://162.247.99.201:81/2108bd5df96044829dcd7ded96e7326220190522485166_WakcIJ.jpg
     * goodsName : 憨批一个
     * gbPrice : 11
     * gbNeedNums : 33
     * gbBuyNums : 22
     * createTime : 2020-09-29 19:11:33
     * neededNums : 11
     * isFull : 0
     * goodsColor : {"color":[{"name":"黑白"}]}
     * goodsSize : {"size":[{"name":"小b崽子"}]}
     */

    @JSONField(name = "gbid")
    private int gbid;

    @JSONField(name = "goodsId")
    private int goodsId;

    @JSONField(name = "goodsLogo")
    private String goodsLogo;

    @JSONField(name = "goodsName")
    private String goodsName;

    @JSONField(name = "gbPrice")
    private int gbPrice;

    @JSONField(name = "gbNeedNums")
    private int gbNeedNums;

    @JSONField(name = "gbBuyNums")
    private int gbBuyNums;

    @JSONField(name = "createTime")
    private String createTime;

    @JSONField(name = "neededNums")
    private int neededNums;

    @JSONField(name = "isFull")
    private int isFull;

    @JSONField(name = "goodsColor")
    private String goodsColor;

    @JSONField(name = "goodsSize")
    private String goodsSize;

    //-1:未参加，0：参与中，1：未中奖/完成，2：中奖/完成，3：撤销
    @JSONField(name = "txStatus")
    private int txStatus;

    @JSONField(name = "givenCml")
    private double givenCml;

    @JSONField(name = "givenCmlFail")
    private double givenCmlFail;

    @JSONField(name = "givenArl")
    private double givenArl;

    @JSONField(name = "goodsNums")
    private String goodsNums;

    @JSONField(name = "gbPriceOld")
    private double gbPriceOld;

    public double getGbPriceOld() {
        return gbPriceOld;
    }

    public void setGbPriceOld(double gbPriceOld) {
        this.gbPriceOld = gbPriceOld;
    }

    public String getGoodsNums() {
        if (TextUtils.isEmpty(goodsNums)) return "";
        return goodsNums;
    }

    public void setGoodsNums(String goodsNums) {
        this.goodsNums = goodsNums;
    }

    public double getGivenCmlFail() {
        return givenCmlFail;
    }

    public void setGivenCmlFail(double givenCmlFail) {
        this.givenCmlFail = givenCmlFail;
    }

    public double getGivenCml() {
        return givenCml;
    }

    public void setGivenCml(double givenCml) {
        this.givenCml = givenCml;
    }

    public double getGivenArl() {
        return givenArl;
    }

    public void setGivenArl(double givenArl) {
        this.givenArl = givenArl;
    }

    public int getTxStatus() {
        return txStatus;
    }

    public void setTxStatus(int txStatus) {
        this.txStatus = txStatus;
    }

    public int getGbid() {
        return gbid;
    }

    public void setGbid(int gbid) {
        this.gbid = gbid;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsLogo() {
        return goodsLogo;
    }

    public void setGoodsLogo(String goodsLogo) {
        this.goodsLogo = goodsLogo;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getGbPrice() {
        return gbPrice;
    }

    public void setGbPrice(int gbPrice) {
        this.gbPrice = gbPrice;
    }

    public int getGbNeedNums() {
        return gbNeedNums;
    }

    public void setGbNeedNums(int gbNeedNums) {
        this.gbNeedNums = gbNeedNums;
    }

    public int getGbBuyNums() {
        return gbBuyNums;
    }

    public void setGbBuyNums(int gbBuyNums) {
        this.gbBuyNums = gbBuyNums;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getNeededNums() {
        return neededNums;
    }

    public void setNeededNums(int neededNums) {
        this.neededNums = neededNums;
    }

    public int getIsFull() {
        return isFull;
    }

    public void setIsFull(int isFull) {
        this.isFull = isFull;
    }

    public String getGoodsColor() {
        return goodsColor;
    }

    public void setGoodsColor(String goodsColor) {
        this.goodsColor = goodsColor;
    }

    public String getGoodsSize() {
        return goodsSize;
    }

    public void setGoodsSize(String goodsSize) {
        this.goodsSize = goodsSize;
    }
}
